/**
* AutoSWF - Cody Cushing. March 26, 2009
* Copyright (c) 2009 Cody Cushing
* No use restrictions. Maintain this notice in all versions. 
**/

package com.autoswf.taskrunner
{
	
	/**
	 * Request type mapped to factory in taskrunner suite. Instance is passed to factory and possibly
	 * into a specific task so additional data can be used to perform the task. 
	 */
	public interface IRequest
	{
		/** An id for this task. */
		function get id():String
		
		/** The result of the task, set before completeHandler is checked/invoked. */
		function get result():*
		
		/**  */
		function set result(value:*):void
		
		/** A callback to invoke on success, can be null. */
		function get completeHandler():Function
		
		/** A callback to invoke on failure, can be null. */
		function get errorHandler():Function
	}
}